$(document).ready(function(){
	$("#form").validate({
		rules: {
			authdesc: "required"
		},
		messages: {
			authdesc: "权限描述不能为空！"
		},
		success: function() {
			var options = $('#userListRight').find('option');
			var valuser="";
			for(var i=0;i<options.length;i++){
				valuser = valuser+options[i].value+";";
			}
    		$('#userList').val(valuser);   
    		var options2 = $('#groupListRight').find('option');
    		var valgroup="";
    		for(var i=0;i<options2.length;i++){
    			valgroup=valgroup+options2[i].value+";";    		
    		}
    		$('#groupList').val(valgroup);
  		}
	});
});